package cn.hrbnu.exception;

import cn.hrbnu.enums.AppHttpCodeEnum;
import lombok.Getter;

/**
 * &#064;Author
 */
@Getter
public class SystemException extends RuntimeException {

    private final int code;

    private final String msg;

    public SystemException(AppHttpCodeEnum httpCodeEnum) {
        super(httpCodeEnum.getMsg());
        this.code = httpCodeEnum.getCode();
        this.msg = httpCodeEnum.getMsg();
    }
}
